package com.zbkj.admin.controller.platform;

import com.github.pagehelper.PageInfo;
import com.zbkj.dal.pojo.request.PageParamRequest;
import com.zbkj.dal.pojo.request.ba.QueryDuesOrderRequest;
import com.zbkj.dal.pojo.response.ba.DuesOrderResponse;
import com.zbkj.dal.base.result.CommonResult;
import com.zbkj.service.service.DuesOrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 充值订单
 * @author tianzhonghai
 * 2023/11/16 07:59
 */
@Slf4j
@RestController
@RequestMapping("api/admin/platform/duesorder")
@Api(tags = "充值订单")
public class DuesOrderController {

    @Autowired
    private DuesOrderService duesOrderService;

    @ApiOperation(value = "分页获取充值订单")
    @RequestMapping(value = "/pageDuesOrders", method = RequestMethod.POST)
    public CommonResult<PageInfo<DuesOrderResponse>> pageDuesOrders(@RequestBody QueryDuesOrderRequest duesOrderRequest, PageParamRequest pageRequest) {
        return CommonResult.success(duesOrderService.pageDuesOrders(duesOrderRequest, pageRequest));
    }
}
